import axios, { initAPI } from "@api/base";
import mpAdapter from "axios-miniprogram-adapter";
import env from "./env.json";

let domain = process.env.VUE_APP_DOMAIN;
if (process.env.isMiniprogram) {
  axios.defaults.adapter = mpAdapter;
  domain = env.VUE_APP_DOMAIN;
}

console.log("domain", domain);

initAPI(domain);
